package com.lanou.service;

import com.lanou.bean.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by dllo on 18/2/27.
 */
public interface BlogService {

    void addBlog(@Param(value = "titel") String titel,
                 @Param(value = "desc")String desc,
                 @Param(value = "content") String content,
                 @Param(value = "userId") int userId);

    List<Blog> searchAllBlog();

    void deleteBlog(@Param(value = "bid") int bid);

    Blog seeMore(@Param(value = "bid") int bid);

    //分页
    int page();

    List<Blog> clickPage(@Param(value = "page") int page);

    //模糊查询
    List<Blog> searchByKeyWord(@Param(value = "keyword") String keyWord);
}
